package com.example.book.controller;

import com.example.book.entity.Book;
import com.example.book.entity.User;
import com.example.book.recommend.Algorithm;

import java.util.ArrayList;
import java.util.List;

public class RecommendationController
{
    public static  void recommendations(){
        //输入用户总量
        List<User> users = new ArrayList<>();
        Algorithm algorithm = new Algorithm();
        List<Book> recommendationbooks = algorithm.Algorithm("小米",users);

        System.out.println("推荐结果如下：");
        for(Book book : recommendationbooks){
            System.out.println("图书：" + book.name + "评分:" + book.score);
        }
    }
}
